<?php
/*
 * New AFormat Forum Theme Form
 */
require_once("$CFG->libdir/formslib.php");
class newaforumpostform extends moodleform {
    function definition() {
        global $CFG;
        $mform =& $this->_form;
        
        $mform->addElement('htmleditor', 'aforumpostpost', get_string("message", "forum"), 'wrap="virtual" rows="20" cols="50"');
        $this->set_upload_manager(new upload_manager('aforumpostimage', true, false, $this->_customdata, false, $this->_customdata->maxbytes, true, true, false));
        $mform->addElement('file', 'aforumpostimage', get_string('attachment', 'forum'));
    }
}
?>